package com.symria.server.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * AdArea entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "AD_AREA")
public class AdArea implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer adId;
	private Integer areaId;

	// Constructors

	/** default constructor */
	public AdArea() {
	}

	/** full constructor */
	public AdArea(Integer adId, Integer areaId) {
		this.adId = adId;
		this.areaId = areaId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "AD_ID")
	public Integer getAdId() {
		return this.adId;
	}

	public void setAdId(Integer adId) {
		this.adId = adId;
	}

	@Column(name = "AREA_ID")
	public Integer getAreaId() {
		return this.areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}

}